package com.wl2o2o.lanqiao.xzfourteen;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.PrintWriter;

/** 
* @author : WLei224
* @date ：2023年3月23日 下午6:50:53 
* 
*/
public class 简单串 {

	public static void main(String[] args) throws IOException {
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
		String string = in.readLine();
//		int len = string.length();
		for(int len = 2; len <= string.length(); len+=2) {
			for(int i = 0; i+len <= string.length(); i++) {
				String cur = string.substring(i,i+len);
				String left = cur.substring(0,len/2);
				String right = cur.substring(len/2,len);
				if(left.equals(right)) {
					System.out.println("easy");
					return;
				}
				
			}
			
		}
		System.out.println("hard");
		return;
	}

}
